home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / Harvest C / MPW Int & Lib / Interfaces / String.h < prev    next >
Text File  |  1991-04-17  |  2KB  |  84 lines

  1. /************************************************************
  2.  
  3.     String.h
  4.     String handling
  5.     
  6.     Copyright Apple Computer,Inc.  1987-1990
  7.     All rights reserved
  8.  
  9. ************************************************************/
  10.  
  11.  
  12. #ifndef __STRING__
  13. #define __STRING__
  14.  
  15. #ifndef __size_t__
  16. #define __size_t__
  17. typedef unsigned int size_t;
  18. #endif
  19.  
  20. #define NULL 0
  21.  
  22. /*
  23.  *    Copying functions
  24.  */
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. void *memcpy (void *s1, const void *s2, size_t n);
  31. void *memmove (void *s1, const void *s2, size_t n);
  32. char *strcpy (char *s1, const char *s2);
  33. char *strncpy (char *s1, const char *s2, size_t n);
  34.  
  35. #ifndef __STDC__
  36. void *memccpy(void *s1, const void *s2, int c, size_t n);
  37. #endif
  38.  
  39. /*
  40.  *    Concatenation functions
  41.  */
  42.  
  43. char *strcat (char *s1, const char *s2);
  44. char *strncat (char *s1, const char *s2, size_t n);
  45.  
  46. /*
  47.  *    Comparison functions
  48.  */
  49.  
  50. int memcmp (const void *s1, const void *s2, size_t n);
  51. int strcmp (const char *s1, const char *s2);
  52. int strcoll (const char *s1, const char *s2);
  53. int strncmp (const char *s1, const char *s2, size_t n);
  54. size_t strxfrm (char *s1, const char *s2, size_t n);
  55.  
  56.  
  57. /*
  58.  *    Search functions
  59.  */
  60.  
  61. void *memchr (const void *s, int c, size_t n);
  62. char *strchr (const char *s, int c);
  63. size_t strcspn (const char *s1, const char *s2);
  64. char * strpbrk (const char *s1, const char *s2);
  65. char *strrchr (const char *s, int c);
  66. size_t strspn (const char *s1, const char *s2);
  67. char *strstr (const char *s1, const char *s2);
  68. char *strtok (char *s1, const char *s2);
  69.  
  70.  
  71. /*
  72.  *    Miscellaneous functions
  73.  */
  74.  
  75. void *memset (void *s, int c, size_t n);
  76. char *strerror (int errnum);
  77. size_t strlen (const char *s);
  78.  
  79. #ifdef __cplusplus
  80. }
  81. #endif
  82.  
  83. #endif
  84.